home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: uu4news.netcom.com!zodiac!szh
- From: szh@zcon.com (Syed Zaeem Hosain)
- Subject: Re: Are flow charts still used?
- Message-ID: <1996Feb5.235118.24132@zcon.com>
- Sender: szh@zcon.com (Syed Zaeem Hosain)
- Nntp-Posting-Host: zodiac
- Reply-To: szh@zcon.com
- Organization: Z Consulting Group
- References: <4f5fb3$oll@spanky.pls.ov.com>
- Date: Mon, 5 Feb 1996 23:51:18 GMT
-
- In article <4f5fb3$oll@spanky.pls.ov.com>, glenn@ov.com (Fletcher.Glenn@ov.com) writes:
- >In article 92g@comet.connix.com, Scott Hawley <shawley@connix.com> writes:
- >>Interesting question, I have been programming for about 17 Years now
- >>and have NEVER drew a flowchart except in school, or after the
- >>code was written to show how it works, It has never worked for
- >>design. I think it could work for High level deging but detail of
- >>software changes too much even while designing for a flowchart to
- >>be of much use. (IMO).
- >>
- >>Anybody that has been programming in the "REAL WORLD" use flowcharts?
- >>have the helped or just slowed up your work?
- >
- >Once in a great while, I use mid-level flowcharts to work out the details
- >of complicated algorithms before I start to code. This helps me visualize
- >what sort of data structures are required, and it helps work out the most
- >efficient sequence of operations.
- >
- >You are right that most of the time you can flowchart in your head to
- >work out code before you write it, but sometimes, there are too many
- >things to keep track of at one time. If you plunge into coding when
- >you don't have a clear idea of the goal, you will either end up
- >with spaghetti code, or perhaps having to rewrite the code.
-
- Agreed. I don't actually draw flowcharts in the traditional sense. What
- works well for me is to write down the prototypes for all the functions
- I can think of up front - particularly the higher level ones in the
- heirarchy. I then code up all these empty functions as a first pass
- framework. Then the functions get fleshed out and tested individually,
- with priority (i.e. which gets done first) to the more important, more
- complex (algorithmically or otherwise), code.
-
- Of course, sometimes the functions change, depending on what I see
- happening in the algorithms and code. But this process still entirely
- focusses my energy to "think before I ink". The process is akin to
- spending time thinking about the data structures beforehand.
-
- If the functionality of each function and the data structures are
- thought out reasonably well, with sufficient "ink" to make the overall
- picture look good, then the coding falls into place relatively easily
- and it flows smoothly with fewer hiccups.
-
- Z
-
-
- --
- -------------------------------------------------------------------------
- | Syed Zaeem Hosain P. O. Box 610097 (408) 441-7021 |
- | Z Consulting Group San Jose, CA 95161 szh@zcon.com |
- -------------------------------------------------------------------------
-